package com.rizhov.gui;

import java.awt.geom.Ellipse2D;

public class GraphVertexEllipse extends Ellipse2D.Double {

    public Object data;

    public Object getData() {
	return data;
    }

    public void setData(Object data) {
	this.data = data;
    }

    public GraphVertexEllipse(int x, int y, int width, int height, Object aData) {
	super(x, y, width, height);
	data = aData;
    }

    public boolean contains(int x, int y) {
	return super.contains(x, y);
    }
    
    @Override
    public String toString() {
        return data.toString();
    }
}
